<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="copyright" content="闻康集团刘代明监制" />
<meta name="robots" content="all" />
<?php echo $css_file;?>
<style type="text/css">
	.regItem label.error{padding-left:20px;background:url(__PUBLIC__/Images/admin/onError.gif) no-repeat;}
	.regItem label.correct{padding-left:20px;background:url(__PUBLIC__/Images/admin/onCorrect.gif) no-repeat;}
</style>
</head>
<body>
<div class="main">
	<div class="crumbs">
	当前位置：<span id="current_pos">设置->用户编辑</span>
	</div>
    <div class="m_content" id="right_main">
        <div class="content_menu blue line-x">
        	<a class="on" href="__GROUP__/Setting/userlist"><em>用户列表</em></a>
        </div>	
        <form action="__GROUP__/Setting/editSave" method="post" enctype="multipart/form-data" id="registerForm">
        	<div class="tableform" id="tab_1">
           		<h5>用户信息</h5>
           		<div class="division">
           			<table cellspacing="0" cellpadding="0" border="0" class="shop_config">
                    	<tbody>
                            <tr class="regItem">
                        		<th>用户名：</th>
                        		<td><input type="text" class="text" id="uName" name="uName" value="<?php echo $info['username'];?>" maxlength="120" /> </td>
            				</tr>
            				<tr class="regItem">
                        		<th>真实名称：</th>
                        		<td><input type="text" class="text" id="rName" name="rName" value="<?php echo $info['realname'];?>" maxlength="120" /> </td>
            				</tr>
            				<tr class="regItem">
                        		<th>用户角色：</th>
                        		<td>
                        		<select name="role" class="select" id="role">
                        		<?php
                        		foreach ($rolelist as $val){
                        			if($val['role_id']!=1){
                        				if($info['role']==$val['role_id']){
                        					echo '<option selected="selected" value="'.$val['role_id'].'">'.$val['name'].'</option>';
                        				}else{
                        					echo '<option value="'.$val['role_id'].'">'.$val['name'].'</option>';
                        				}
                        				
                        			}
                        		}
                        		?>
                        		</select>
                        		</td>
            				</tr>
                            <tr class="regItem">
                        		<th>邮箱：</th>
                        		<td><input type="text" class="text" id="uEmail" name="uEmail" value="<?php echo $info['email'];?>" maxlength="120" disabled="disabled" /> </td>
            				</tr>
            				<tr class="regItem">
                        		<th>手机号：</th>
                        		<td><input type="text" class="text" id="uPhone" name="uPhone" value="<?php echo $info['phone'];?>" maxlength="11" /> </td>
            				</tr>
                          	<tr class="regItem">
                        		<th>性别：</th>
                        		<td>
                        			<select  name="sex">
                        				<option value="0" <?php if($info['sex']==0)echo "selected='selected'";?>>女</option>
                        				<option value="1" <?php if($info['sex']==1)echo "selected='selected'";?>>男</option>
                        			</select>
                        		</td>
            				</tr>
                           
             			</tbody>
           			</table>
        		</div>
			</div>
            <div style="text-align:center;">
            	<input type="hidden" name="userid" value="<?php echo $info['id'];?>" readonly="readonly"/>
                <input type="submit" class="button" value="确定 " name="submit" />
                <input type="reset" class="button" value="重置 " name="reset" />
            </div>
        </form>
    </div>
</div>
<?php echo $js_file;?>
<script type="text/javascript">
$(document).ready(function() {
    $("#uName").focus();
	
	
});
</script>
</body>

</html>
			
